import 'package:flutter/material.dart';
class Test24 extends StatefulWidget{
    _TestState createState() => _TestState();
}

class _TestState extends State<Test24> {
    

  @override
  Widget build(BuildContext context) {

    return new Scaffold(
        appBar: AppBar(
            title: Text("table示例"),
            centerTitle: true,
        ),
        body: Container(
            child: Table(
                columnWidths: <int,TableColumnWidth>{
                    0:FixedColumnWidth(100.0),
                    1:FixedColumnWidth(40.0),
                    2:FixedColumnWidth(80.0),
                    3:FixedColumnWidth(80.0),
                },
                border: TableBorder.all(color: Colors.black38,width: 1.0,style: BorderStyle.solid),
                children: <TableRow>[
                    TableRow(
                        children: <Widget>[
                            Text("姓名"),
                            Text("姓名1"),
                            Text("姓名2"),
                            Text("姓名3"),
                        ]
                    ),
                    TableRow(
                        children: <Widget>[
                            Text("00"),
                            Text("111"),
                            Text("222"),
                            Text("333"),
                        ]
                    )
                ],
            )
        ),
        
    );
  }


}
